<%@ page language="java" import="java.sql.Connection,java.sql.DriverManager"
	pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%
	Connection connection = null;
	String connectionStatus = "";
	try {
		String constr = "jdbc:jtds:sqlserver://db.mpi.qiandai.com:2433;Databasename=qiandainew;sendStringParametersAsUnicode=false";
		DriverManager
				.registerDriver(new net.sourceforge.jtds.jdbc.Driver());
		connection = DriverManager.getConnection(constr, "PartnerMpiApp",
				"^%$#@!partnermpiapp");
		connectionStatus = "qiandainew:true";
	} catch (Exception e) {
		connectionStatus = "qiandainew:false";
	} finally {
		try {
			if (connection != null) {
				connection.close();
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
	request.setAttribute("connectionStatus", connectionStatus);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<title>monitorPage</title>
	</head>

	<body>
		${connectionStatus}
	</body>
</html>
